/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nc.solutions.rentacar.domain.station.Impl;

import com.nc.solutions.rentacar.domain.station.IStation;
import com.nc.solutions.rentacar.domain.car.ICar;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author I
 */
public class Station implements IStation{

    private String address;
    private String numberOfStation;
    private String region; 
    private String city;
    private long id;
    private List <ICar> listCar = new ArrayList<ICar>();

    @Override
    public String getAddress() {
        return address;
    }

    @Override
    public void setAddress(String value) {
        this.address = value;
    }

    @Override
    public String getNumberOfStation() {
        return numberOfStation;
    }

    @Override
    public void setNumberOfStation(String value) {
        this.numberOfStation = value;
    }

    @Override
    public void addCar(ICar car) {
        listCar.add(car);
    }

    @Override
    public ICar getCar(int index) {
        return listCar.get(index);
    }

    @Override
    public void deleteCar(int index) {
        listCar.remove(index);
    }

    @Override
    public String getRegion() {
        return region;
    }

    @Override
    public void setRegion(String value) {
        this.region = value;
    }

    @Override
    public String getCity() {
        return city;
    }

    @Override
    public void setCity(String value) {
        this.city = value;
    }

    @Override
    public long getID() {
        return id;
    }

    @Override
    public void setID(long value) {
        this.id = value;
    }
    
    
}
